
package org.sample.test.demo;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import java.rmi.RemoteException;

public class SampleTestCase {


    @BeforeClass(alwaysRun = true)
    public void serviceDeployment() throws Exception {
        System.out.println("This Runs Before the test Class");
    }

    @AfterClass(alwaysRun = true)
    public void destroy() throws RemoteException {
        System.out.println("This Runs After the test Class");
    }

    @Test
    public void selectOperation() {
        System.out.println("Test Methods comes here- method 1");
    }

    @Test(dependsOnMethods = "selectOperation")
    public void performAction() {
        System.out.println("Test Methods comes here- method 1");
    }
}
